//手机号码
function validatePhone(){
	var myphone = $("#myphone").val();
	if(myphone == ""||myphone==null) {
		showRedMsg("", "请输入您的手机号码");
		return false;
	}else if(!(/^1[34578]\d{9}$/.test(myphone))){
		showRedMsg("", "手机号码有误，请重填");
		return false;
	}
}
//验证码
function validateNcode(){
	var ncode = $("#myinput").val();
	if(ncode == ""||ncode==null) {
		showRedMsg("", "请您先验证登入");
		return false;
	}
}
//寄件人
function validateUserName(){
	var userName = $("#userName").val();
	if(userName == ""||userName==null) {
		showRedMsg("", "请输入寄件人姓名");
		return false;
	}else if(!(/^[\u4E00-\u9FA5]{2,4}$/.test(userName))){
		showRedMsg("", "寄件人姓名有误，请重填");
		return false;
	}
}
//寄件地址
function validateAddress(){
	var userAddress = $("#userAddress").val();
	if(userAddress == ""||userAddress==null) {
		showRedMsg("", "请输入寄件人寄件地址");
		return false;
	}
}
//联系电话
function validateUserPhone(){
	var userphone = $("#userphone").val();
	if(userphone == ""||userphone==null) {
		showRedMsg("", "请输入寄件人联系电话");
		return false;
	}else if(!(/^1[34578]\d{9}$/.test(userphone))){
		showRedMsg("", "联系电话有误，请重填");
		return false;
	}
}

//预约日期

function validateDatePickerDate(){
	var datepickerDate = $("#datepickerDate").val();
	if(datepickerDate == ""||datepickerDate==null) {
		showRedMsg("", "请输入您的预约日期");
		return false;
	}
}
//预约时间
function validateDatePickerTime(){
	var datepickerTime = $("#datepickerTime").val();
	if(datepickerTime == ""||datepickerTime==null) {
		showRedMsg("", "请输入您的预约时间");
		return false;
	}
}
//联系人
function validateContUserName(){
	var contUserName = $("#contUserName").val();
	if(contUserName == ""||contUserName==null) {
		showRedMsg("", "请输入联系人姓名");
		return false;
	}else if(!(/^[\u4E00-\u9FA5]{2,4}$/.test(contUserName))){
//		showRedMsg("", "寄件人姓名有误，请重填");
//		return false;
alert("111")
	}
}
function validateContUserName2(){
	var contUserName2 = $("#contUserName2").val();
	if(contUserName2 == ""||contUserName2==null) {
		showRedMsg("", "请输入联系人姓名");
		return false;
	}else if(!(/^[\u4E00-\u9FA5]{2,4}$/.test(contUserName2))){
		showRedMsg("", "寄件人姓名有误，请重填");
		return false;
	}
}
//联系人手机
function validateContUserPhone(){
	var contUserPhone = $("#contUserPhone").val();
	if(contUserPhone == ""||contUserPhone==null) {
		showRedMsg("", "请输入联系人手机号");
		return false;
	}else if(!(/^1[34578]\d{9}$/.test(contUserPhone))){
		showRedMsg("", "联系人手机号码有误，请重填");
		return false;
	}
}
function validateContUserPhone2(){
	var contUserPhone2 = $("#contUserPhone2").val();
	if(contUserPhone2 == ""||contUserPhone2==null) {
		showRedMsg("", "请输入联系人手机号");
		return false;
	}else if(!(/^1[34578]\d{9}$/.test(contUserPhone2))){
		showRedMsg("", "手机号码有误，请重填");
		return false;
	}
}
//通讯地址
function validateContUserAddress(){
	var contUserAddress = $("#contUserAddress").val();
	if(contUserAddress == ""||contUserAddress==null) {
		showRedMsg("", "请输入通讯地址");
		return false;
	}
}
function validateContUserAddress2(){
	var contUserAddress2 = $("#contUserAddress2").val();
	if(contUserAddress2 == ""||contUserAddress2==null) {
		showRedMsg("", "请输入通讯地址");
		return false;
	}
}
//企业名称
function validateLibertyName(){
	var libertyName = $("#libertyName").val();
	if(libertyName == ""||libertyName==null) {
		showRedMsg("", "请输入企业名称");
		return false;
	}
}
//统一社会信用代码
function validateLibertyCode(){
	var libertyCode = $("#libertyCode").val();
	if(libertyCode == ""||libertyCode==null) {
		showRedMsg("", "请输入统一社会信用代码");
		return false;
	}else if(!(/^[0-9A-Z]{18}$/.test(libertyCode))){
		showRedMsg("", "统一社会信用代码有误，请重填");
		return false;
	}
}
//注册地址
function validateLibertyAddress(){
	var libertyAddress = $("#libertyAddress").val();
	if(libertyAddress == ""||libertyAddress==null) {
		showRedMsg("", "请输入注册地址");
		return false;
	}
}
//注册日期
function validateRegDate(){
	var regDate = $("#regDate").val();
	if(regDate == ""||regDate==null) {
		showRedMsg("", "请输入注册日期");
		return false;
	}
}
//注册资本
function validateRegFund(){
	var regFund = $("#regFund").val();
	if(regFund == ""||regFund==null) {
		showRedMsg("", "请输入注册资本");
		return false;
	}
}
//联系电话
function validateContPhone(){
	var contPhone = $("#contPhone").val();
	if(contPhone == ""||contPhone==null) {
		showRedMsg("", "请输入联系电话");
		return false;
	}else if(!(/^1[34578]\d{9}$/.test(contPhone))){
		showRedMsg("", "手机号码有误，请重填");
		return false;
	}
}
//收件人
function validateReName(){
	var reName = $("#reName").val();
	if(reName == ""||reName==null) {
		showRedMsg("", "请输入收件人姓名");
		return false;
	}else if(!(/^[\u4E00-\u9FA5]{2,4}$/.test(reName))){
		showRedMsg("", "收件人姓名有误，请重填");
		return false;
	}
}
//收件人手机号
function validateRePhone(){
	var rePhone = $("#rePhone").val();
	if(rePhone == ""||rePhone==null) {
		showRedMsg("", "请输入收件人手机号");
		return false;
	}else if(!(/^1[34578]\d{9}$/.test(rePhone))){
		showRedMsg("", "手机号码有误，请重填");
		return false;
	}
}
//邮寄地址
function validateReAddress(){
	var reAddress = $("#reAddress").val();
	if(reAddress == ""||reAddress==null) {
		showRedMsg("", "请输入邮寄地址");
		return false;
	}
}